package com.five.api.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.five.api.dao.ArticleTypeMapper;
import com.five.api.service.ArticleTypeService;
import com.five.entity.ArticleType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 文章分类表 服务实现类
 * </p>
 *
 * @author star
 * @since 2021-06-16
 */
@Service
public class ArticleTypeServiceImpl extends ServiceImpl<ArticleTypeMapper, ArticleType> implements ArticleTypeService {

    @Autowired
    private ArticleTypeMapper articleTypeMapper;
    @Override
    public List selectArticleType() {
        List articleType = articleTypeMapper.selectArticleType();



        return articleType;
    }

    @Override
    public List<ArticleType> selectArticleTypes() {
        List<ArticleType> articleTypes = baseMapper.selectList(null);
        return articleTypes;
    }
}
